﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using WPFHelpers;

namespace Tourbook.Tours
{
    public class TourViewModel : ObservableObject
    {
        #region Construction & Members

        private TourModel mTour;

        public TourViewModel()
        {
            mTour = new TourModel();
        }

        internal TourViewModel(TourModel model)
        {
            mTour = model;
        }

        #endregion

        #region Properties

        public string Title
        {
            get { return mTour.Title; }
            set
            {
                if (!String.Equals(value, mTour.Title, StringComparison.Ordinal))
                {
                    mTour.Title = value;
                    RaisePropertyChanged("Title");
                }
            }
        }

        #endregion

        internal TourModel OriginalModel
        {
            get { return mTour; }
        }
    
    }
}
